
def judge_year(year):
    if year%400 == 0:
        return True
    if year%4 == 0 and year%100 != 0:
        return True
    else:
        return False
if __name__ == '__main__':
    year = eval(input("请输入年份："))
    if judge_year(year):
        # print("{}是闰年".format(year))
        print(f"{year}是闰年")
    else:
        print("{}不是闰年".format(year))
